package cn.xh.org.domain;

import cn.xh.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class Department extends BaseDomain{
    private String sn;
    private String name;
    /*父层次id*/
    @ApiModelProperty("父层次id 例如：/2/5/8")
    private String dirPath;
    private Integer state = 0;
    private Long manager_id;
    /*引用属性，表明部门管理员
    * 多对一/一对一
    * */
    private Employee manager;

    private Long parent_id;
    /*引用属性，表明上级部门
    * 多对一/一对一
    * */
    private Department parent;

    /*子部门*/
    private List<Department> children;

}
